<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <!--<base href="<%=basePath%>">
     --><s:head theme="ajax"/>
    <title>计算机学院毕业设计管理系统</title>
    <meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="css/index.css">
	<script type="text/javascript" src="js/index.js" charset="utf-8"> </script>
  </head>
  
  <body>
  	<div>   
  		<div id="loginDiv">
  			<div id="login_left">
	  			<div id="title">计算机学院毕业设计管理系统</div>
	  			<div id="loginContent">
				    <s:form action="login" method="POST" cssClass="login_c" onsubmit="return validate();" theme="simple">
				    	<div class="errorDiv">
				    		<s:fielderror>
				    		</s:fielderror>
				    	</div>
				    	<div>
				    	<table>
				    		<tr>
				    			<td>
				    				<label class="label">用户编号:</label>
				    			</td>
				    			<td>
				    				<s:textfield id="username" name="username"  size="17" maxlength="8">
					    			</s:textfield>
				    			</td>
				    		</tr>
				    		<tr>
				    			<td>
				    				<label class="label">用户密码:</label>
				    			</td>
				    			<td>
				    				<s:password name="password" id="password" size="17"></s:password>
				    			</td>
				    		</tr>
				    		<tr>
				    			<td>
				    				<label class="label">用户类型:</label>
				    			</td>
				    			<td><s:select list="{'学生','老师','研究所审题成员','开题报告答辩成员','最终答辩成员','管理员'}" name="type"></s:select></td>
				    		</tr>
					    	<tr>
					    		<td colspan="2" style="text-align: center;">
					    			<s:submit value="登录" align="center" type="image" src="img/login.gif" ></s:submit>
					    		</td>
					    	</tr>
				    	</table>
				    	</div>
				    </s:form>
			    </div>
		    </div>
		    <div id="login_right">
		     <s:url id="actionId" action="showNews" />
		    <s:div id="news" theme="ajax"  href="%{actionId}" loadingText="正在加载..."></s:div>
		    
		    
		   <div id="more"><a target="_blank" href="zcg/showAllNews.action">更多公告...</a></div>
		    </div>
		    
		    
		    <div style="clear: both;"></div>
	    </div>
    </div>
  </body>
</html>
